package cn.anecansaitin.whimsy.common.capabilities;

import cn.anecansaitin.whimsy.common.extension.comboSystem.Combo;
import cn.anecansaitin.whimsy.common.extension.comboSystem.ISkill;
import net.minecraft.world.entity.player.Player;

public record ComboHandler(Combo combo) implements IComboHandler {

    @Override
    public void comboTick(Player player) {
        combo.tick(player);
    }

    @Override
    public void keyInput(int key) {
        combo.inputKey(key);
    }

    @Override
    public ISkill getCurrentSkill() {
        return combo.getCurrentSkill();
    }
}